-- GENERATED SPELL FOR [Flesh Golem] --


function spell0_1805(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(10101,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1805', 626, 1)
end

function spell1_1805(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1805', 604, 1)
end

function Sorts_1805(pUnit, Event)
local choix_sorts_1805 = math.random(0, 1)
if choix_sorts_1805 == 0 then
pUnit:RegisterEvent('spell0_1805', 1, 1)
end
if choix_sorts_1805 == 1 then
pUnit:RegisterEvent('spell1_1805', 1, 1)
end
end

function mob1805_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1805', math.random(1500, 3000), 1)
end

function mob1805_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1805_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1805_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1805, 1, 'mob1805_Action')
RegisterUnitEvent(1805, 2, 'mob1805_Leave')
RegisterUnitEvent(1805, 3, 'mob1805_Kill')
RegisterUnitEvent(1805, 4, 'mob1805_Die')
